package com.example.demo.core.operator;

import com.example.demo.core.enums.RuleOpEnum;

/**
 * @author zuitu@foxmail.com
 * @date 2021/1/18
 */
@RuleOp(method = RuleOpEnum.GREATOR_THAN_OR_EQUAL_TO)
public class OpGreatorThanOrEqualTo implements IRuleOp {
    @Override
    public boolean doOp(String myVal, String val) {
        if (myVal == null) {
            return false;
        }
        return Integer.parseInt(myVal) >= Integer.parseInt(val);
    }
}
